package com.bootdo.common.exception;

import lombok.Getter;


/**
 * 东蕾科技
 * */
@Getter
public enum ExceptionEnum {
    MOBILE_PHONE_NUMBER_IS_NOT_REGISTERED(400,"该手机号码未注册, 请前往注册"),
    INVALID_MIMA_XIANGTONG(400, "两次密码不同,请重新输入"),
    INVALID_FILE_TYPE(400, "无效的文件类型！"),
    INVALID_PARAM_ERROR(400, "无效的请求参数！"),
    INVALID_PHONE_NUMBER(400, "无效的手机号码"),
    INVALID_VERIFY_CODE(400, "验证码错误,请刷新验证码"),
    INVALID_USERNAME_PASSWORD(400, "无效的用户名和密码！"),
    INVALID_SERVER_ID_SECRET(400, "无效的服务id和密钥！"),
    INVALID_NOTIFY_PARAM(400, "回调参数有误！"),
    INVALID_NOTIFY_SIGN(400, "回调签名有误！"),
    INVALID_MISSING_PARAMETERS(400, "缺少参数！"),
    FAILED_TO_DELETE(400, "删除失败！"),
    PLEASE_AUTHENTICATE_FIRST(400, "请先认证公司！"),
    DATA_ALREADY_EXISTS(400, "数据已经存在"),
    ZHI_WEI_LEIXING(400, "请勿重复添加相同职位"),
    QING_WU_CHONG_FU(400, "该用户已邀请,请等待求职者回应"),
    PHONE_NUMBER_EXISTS(400, "手机号码已经存在！"),
    INCORRECT_USER_IDENTITY(400, "您已经认证了个人用户，不能认证单位用户！"),

    MISSING_REQUIRED_PICTURE(400, "缺少必要图片"),


    RETURNS_NULL(404, "没有查到数据"),
    APPLICATION_NOT_FOUND(404, "应用不存在！"),

    QINGCHONGXIN_ZHU_CE(500,"账号不存在"),
    SHOUJI_YI_ZHUCE(500, "手机号已被注册！"),
    FILE_SENDING_FAILED(500, "文件上传异常！"),
    ILLEGAL_OPERATION(500, "非法操作！"),
    TUXINYANZHENGMA_WEIKONG(500,"图形验证码不能为空"),
    ZHANGHAOMIMA_CUOWU(500,"账号或密码错误"),
    YANZHENGMA_SHI_YICHANG(500,"验证码异常"),
    YANZHENGMA_CUO_WU(500,"验证码输入错误"),
    DATA_TRANSFER_ERROR(500, "数据转换异常！"),
    INSERT_OPERATION_FAIL(500, "注册失败！"),
    UPDATE_OPERATION_FAIL(500, "修改失败！"),
    DELETE_OPERATION_FAIL(500, "删除操作失败！"),
    FILE_UPLOAD_ERROR(500, "文件上传失败！"),
    DIRECTORY_WRITER_ERROR(500, "目录写入失败！"),
    ABNORMAL_DATA(500, "数据异常！"),
    FILE_WRITER_ERROR(500, "文件写入失败！"),
    SEND_MESSAGE_ERROR(500, "短信发送失败！"),


    UNAUTHORIZED(401, "登录失效或未登录！");

    private final int status;
    private final String message;

    ExceptionEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }
}